use actix_web::web;

pub mod api_category;
pub mod api_classroom;
pub mod api_knowledge;
pub mod api_knowledge_progress;
pub mod api_scheduler;
pub mod api_school;
pub mod api_static;
pub mod api_student;
pub mod api_subject;
pub mod api_task;
pub mod api_teacher;
pub mod service;

pub fn config(cfg: &mut web::ServiceConfig) {
    api_category::config(cfg);
    api_classroom::config(cfg);
    api_knowledge_progress::config(cfg);
    api_knowledge::config(cfg);
    api_scheduler::config(cfg);
    api_school::config(cfg);
    api_student::config(cfg);
    api_subject::config(cfg);
    api_task::config(cfg);
    api_teacher::config(cfg);

    // 放在最后
    api_static::config(cfg);
}
